package com.bdqn.qnnews.wemedia.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.experimental.Accessors;

import java.time.LocalDateTime;

/**
 * @author xlz
 * @since 2023-12-26
 * @description 自媒体图文素材信息表
 */
@Data
// 链式语法
@Accessors(chain = true)
@TableName("wm_material")
@Schema(name = "WmMaterial 对象", description = "自媒体图文素材信息表 实体类")
public class WmMaterial {

    @Schema(description = "主键")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @Schema(description = "自媒体用户ID")
    private Long userId;

    @Schema(description = "图片地址")
    private String url;

    @Schema(description = "素材类型	0 图片 1 视频")
    private Byte type;

    @Schema(description = "是否收藏")
    @TableField("is_collection")
    private Boolean collection;

    @Schema(description = "创建时间")
    private LocalDateTime createdTime;


}
